<?php

namespace App\Models\Business;

use App\Models\Department;
use Illuminate\Database\Eloquent\Model;

class DepartmentBasicQuote extends Model
{
    protected $guarded=[];

    protected function serializeDate(\DateTimeInterface $date)
    {
        return $date->format('Y/m/d H:i:s');
    }

    public function department(){
        return $this->belongsTo(Department::class,'department_id');
    }
        public function serviceCategory(){
        return $this->belongsTo(ServiceCategory::class,'service_cate_id');
    }
    public function oldServiceCategory(){
        return $this->belongsTo(ServiceCategory::class,'old_service_cate_id');
    }


}
